package com.ds.lens.data.common.document;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

import java.util.Map;

/**
 * @author WeiShaoying
 * @date 2019/11/28 上午9:51
 */
@Document(indexName = "metrics", type = "metrics", createIndex = false)
@Data
public class Metrics {

    @Id
    private String id;

    private String appKey;

    private Long appId;

    private String metricName;

    private Long timeStamp;

    private Double value;

    private Map<String, Object> tags;
}
